package com.cuitrip.business.order.detail.ui.viewholder;

import android.view.View;
import android.widget.TextView;

import com.cuitrip.app.base.PartViewHolder;
import com.cuitrip.business.order.detail.ui.model.OrderCancelReasonRenderData;
import com.cuitrip.service.R;

import butterknife.ButterKnife;
import butterknife.Bind;

/**
 * 订单失效原因viewholder
 * Created by ak
 */
public class CancelReasonPartViewHolder implements PartViewHolder<OrderCancelReasonRenderData> {

    @Bind(R.id.ct_reason_title)
    TextView mReasonTitle;

    @Bind(R.id.ct_reason_content)
    TextView mReasonContent;



    public void build(View view) {
        ButterKnife.bind(this, view);
    }

    public void render(final OrderCancelReasonRenderData data) {
        mReasonTitle.setText(data.getReasonTitle());
        mReasonContent.setText(data.getReasonContent());
    }


}
